package module

import "time"

type ClusterAuth struct {
	ID          uint64    `gorm:"column:id;primary_key;autoIncrement"`
	ClusterName string    `gorm:"column:cluster_name"`
	AuthType    string    `gorm:"column:auth_type"`
	FilePath    string    `gorm:"column:file_path"`
	Token       string    `gorm:"column:token"`
	IsDelete    string    `gorm:"column:is_delete"`
	Ct          time.Time `gorm:"column:created_at"`
	Ut          time.Time `gorm:"column:updated_at"`
}

type ClusterSimpleResult struct {
	ID          uint64 `gorm:"column:id;primary_key;autoIncrement"`
	ClusterName string `gorm:"column:cluster_name"`
}

func (a ClusterAuth) TableName() string {
	table := "cms_account.cluster_auth_info"
	return table
}

func (a ClusterSimpleResult) TableName() string {
	table := "cms_account.cluster_auth_info"
	return table
}
